package com.gupao.decorator.passport.decorator;

import com.gupao.decorator.passport.old.ISigninService;
import com.gupao.decorator.passport.old.ResultMsg;

public class SigninForThirdService implements ISigninForThirdDecorator{

    private ISigninService iSigninService;

    public SigninForThirdService(ISigninService iSigninService){
        this.iSigninService = iSigninService;
    }

    @Override
    public ResultMsg loginForQQ(String openId) {
        return null;
    }

    @Override
    public ResultMsg loginForToken(String token) {
        return null;
    }

    @Override
    public ResultMsg regist(String username, String password) {
        return this.iSigninService.regist(username,password);
    }

    @Override
    public ResultMsg login(String username, String password) {
        return this.iSigninService.login(username,password);
    }
}
